home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_block_ravine.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  5.7 KB  |  310 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_block_ravine", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.     Condition("AND")
  14.     {
  15.       Condition("InRegion")
  16.       {
  17.         Region("monkey_power1");
  18.         Team("JDA");
  19.         Type("jda.building.solarpower")
  20.         {
  21.           Amount(0);
  22.           Operator(">");
  23.         }
  24.       }
  25.       Condition("InRegion")
  26.       {
  27.         Region("monkey_power2");
  28.         Team("JDA");
  29.         Type("jda.building.solarpower")
  30.         {
  31.           Amount(0);
  32.           Operator(">");
  33.         }
  34.       }
  35.       Condition("VarConstInteger", "@.basegone", "==", 0);
  36.     }
  37.  
  38.     Action()
  39.     {
  40.       NewObjective("objective_traitors_eliminated");
  41.       NewObjective("objective_lost_power");
  42.       NewObjective("cineractive_DF_online");
  43.       NewObjective("objective_block_ravine_wait");
  44.       ObjectiveAbandoned("objective_blinking2");
  45.     }
  46.   }
  47. }
  48.  
  49. CreateObjectType("objective_block_ravine_wait", "Objective")
  50. {
  51.   GameObj();
  52.   ObjectiveObj()
  53.   {
  54.     Condition("Timer")
  55.     {
  56.       Time(5);
  57.     }
  58.  
  59.     Action()
  60.     {
  61.       DisplayObjective("Complete", "objective_block_ravine");
  62.       DisplayObjective("Add", "Objective_traitors_eliminated")
  63.       {
  64.         Text("#missions.jda.j03.obj_traitors_eliminated");
  65.       }
  66.     }
  67.   }
  68. }
  69.  
  70.  
  71. CreateObjectType("objective_block_ravine2", "Objective")
  72. {
  73.   GameObj();
  74.   ObjectiveObj()
  75.   {
  76.     Condition("And")
  77.     {
  78.       Condition("InRegion")
  79.       {
  80.         Region("monkey_power1");
  81.         Team("JDA");
  82.         Type("jda.building.solarpower")
  83.         {
  84.           Amount(0);
  85.           Operator(">");
  86.         }
  87.       }
  88.       Condition("InRegion")
  89.       {
  90.         Region("monkey_power2");
  91.         Team("JDA");
  92.         Type("jda.building.solarpower")
  93.         {
  94.           Amount(0);
  95.           Operator(">");
  96.         }
  97.       }
  98.       Condition("VarConstInteger", "@.basegone", "==", 1);
  99.     }
  100.  
  101.     Action()
  102.     {
  103.       NewObjective("cineractive_outro");
  104.       NewObjective("objective_block_ravine2_wait");
  105.       ObjectiveAbandoned("objective_blinking2");
  106.       SetTeam()
  107.       {
  108.         Team("DF_on");
  109.         Tag("DF");
  110.       }
  111.       WallOperation()
  112.       {
  113.         Tag("DF");
  114.         Operation("AutoConnect");
  115.       }
  116.     }
  117.   }
  118. }
  119.  
  120. CreateObjectType("objective_block_ravine2_wait", "Objective")
  121. {
  122.   GameObj();
  123.   ObjectiveObj()
  124.   {
  125.     Condition("Timer")
  126.     {
  127.       Time(5);
  128.     }
  129.  
  130.     Action()
  131.     {
  132.       DisplayObjective("Complete", "objective_traitors_eliminated");
  133.       DisplayObjective("Complete", "objective_block_ravine");
  134.     }
  135.   }
  136. }
  137.  
  138.  
  139. CreateObjectType("objective_lost_power", "Objective")
  140. {
  141.   GameObj();
  142.   ObjectiveObj()
  143.   {
  144.     Condition("OR")
  145.     {
  146.       Condition("InRegion")
  147.       {
  148.         Region("monkey_power1");
  149.         Team("JDA");
  150.         Type("jda.building.solarpower")
  151.         {
  152.           Amount(1);
  153.           Operator("<");
  154.         }
  155.       }
  156.       Condition("InRegion")
  157.       {
  158.         Region("monkey_power2");
  159.         Team("JDA");
  160.         Type("jda.building.solarpower")
  161.         {
  162.           Amount(1);
  163.           Operator("<");
  164.         }
  165.       }
  166.     }
  167.  
  168.     Action()
  169.     {
  170.       GameMessage()
  171.       {
  172.        Message("msg_lost_power");
  173.       }
  174.       SetTeam()
  175.       {
  176.         Team("DF_off");
  177.         Tag("DF");
  178.       }
  179.       WallOperation()
  180.       {
  181.         Tag("DF");
  182.         Operation("Deactivate");
  183.       }
  184.       NewObjective("objective_got_it_back");
  185.       DisplayObjective("Incomplete", "objective_block_ravine");
  186.     }
  187.   }
  188. }
  189.  
  190. CreateObjectType("objective_got_it_back", "Objective")
  191. {
  192.   GameObj();
  193.   ObjectiveObj()
  194.   {
  195.     Condition("AND")
  196.     {
  197.       Condition("InRegion")
  198.       {
  199.         Region("monkey_power1");
  200.         Team("JDA");
  201.         Type("jda.building.solarpower")
  202.         {
  203.           Amount(0);
  204.           Operator(">");
  205.         }
  206.       }
  207.       Condition("InRegion")
  208.       {
  209.         Region("monkey_power2");
  210.         Team("JDA");
  211.         Type("jda.building.solarpower")
  212.         {
  213.           Amount(0);
  214.           Operator(">");
  215.         }
  216.       }
  217.     }
  218.  
  219.     Action()
  220.     {
  221.       GameMessage()
  222.       {
  223.        Message("msg_got_it_back");
  224.       }
  225.       SetTeam()
  226.       {
  227.         Team("DF_on");
  228.         Tag("DF");
  229.       }
  230.       WallOperation()
  231.       {
  232.         Tag("DF");
  233.         Operation("AutoConnect");
  234.       }
  235.       NewObjective("objective_lost_power");
  236.       DisplayObjective("Complete", "objective_block_ravine");
  237.     }
  238.   }
  239. }
  240.  
  241. CreateObjectType("objective_one_down", "Objective")
  242. {
  243.   GameObj();
  244.   ObjectiveObj()
  245.   {
  246.     Condition("OR")
  247.     {
  248.       Condition("InRegion")
  249.       {
  250.         Region("monkey_power1");
  251.         Team("JDA");
  252.         Type("jda.building.solarpower")
  253.         {
  254.           Amount(0);
  255.           Operator(">");
  256.         }
  257.       }
  258.       Condition("InRegion")
  259.       {
  260.         Region("monkey_power2");
  261.         Tean("JDA");
  262.         Type("jda.building.solarpower")
  263.         {
  264.           Amount(0);
  265.           Operator(">");
  266.         }
  267.       }
  268.     }
  269.  
  270.     Action()
  271.     {
  272.       GameMessage()
  273.       {
  274.         Message("msg_one_down");
  275.       }
  276.       Animate()
  277.       {
  278.         Tag("DF");
  279.         Cycle("preprocess");
  280.       }
  281.       ObjectiveAbandoned("objective_blinking2");
  282.     }
  283.   }
  284. }
  285.  
  286. CreateObjectType("objective_warden", "Objective")
  287. {
  288.   GameObj();
  289.   ObjectiveObj()
  290.   {
  291.     Condition("HaveType")
  292.     {
  293.       Type("jda.building.motorpool1")
  294.       {
  295.         Amount(0);
  296.         Operator(">");
  297.       }
  298.     }
  299.     Action()
  300.     {
  301.       GameMessage()
  302.       {
  303.         Message("msg_traps");
  304.       }
  305.     }
  306.   }
  307. }
  308.  
  309.  
  310.